package com.numbfish.ch_07.test4.src.mycallable ;

import java.util.concurrent.Callable;

public class MyCallableA implements Callable<String> {

	@Override
	public String call() throws Exception {
		System.out.println("MyCallableA " + Thread.currentThread().getName()
				+ " begin " + System.currentTimeMillis());
		for (int i = 0; i < 123456; i++) {
			String newString = new String();
			Math.random();
			Math.random();
			Math.random();
			Math.random();
			Math.random();
			System.out.println("MyCallableA 在运行中=" + (i + 1));
		}
		System.out.println("MyCallableA " + Thread.currentThread().getName()
				+ "   end " + System.currentTimeMillis());
		return "returnA";
	}

}